package com.example.api.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/11/14
 * Time:23:21
 */
@RestController
public class MemberController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/getMember")
    public String getMember(){
        return "我是会员服务,端口:"+serverPort;
    }


    @RequestMapping("/getUser")
    public String getUser(String name){
        return "会员服务收到订单服务发送的name请求参数是:"+name;
    }

}
